//
//  EmotionGroup.swift
//  Tinsecret_TW
//
//  Created by wanghui on 2018/11/27.
//  Copyright © 2018年 tst. All rights reserved.
//

import UIKit
import WCDBSwift

class EmotionGroup: TableCodable {
    static let table = "EmotionGroup"
    var id:Int64 = 0
    var name:String? = nil
    var coverUrl:String? = nil
    
    enum CodingKeys: String, CodingTableKey {
        typealias Root = EmotionGroup
        static let objectRelationalMapping = TableBinding(CodingKeys.self)
        case id
        case name
        case coverUrl
        
//        static var columnConstraintBindings: [CodingKeys: ColumnConstraintBinding]? {
//            return [.id: ColumnConstraintBinding(isPrimary: true, isAutoIncrement: true)]
//        }
        
//        static var indexBindings: [IndexBinding.Subfix: IndexBinding]? {
//            return [
//                "_userIdIndex": IndexBinding(indexesBy: userId)
//            ]
//        }
    }
    
//    var isAutoIncrement: Bool = true
    var lastInsertedRowID: Int64 = 0
}
